package com.wangyadong.hobby.service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class CommonFactory {


    public static void main(String[] args) {
        Map<String, ArrayList<String>> map = new HashMap<>();
        ArrayList<String> list = (ArrayList<String>) map.computeIfAbsent("WANG",
                k -> new ArrayList<String>());
        boolean test1 = list.add("test1");
        System.out.println(list);
    }
}
